//
//  HWXiaoXiSheViewController.m
//  HWanGame
//
//  Created by 陈道斌 on 2020/10/27.
//  Copyright © 2020 Chendaobin. All rights reserved.
//

#import "HWXiaoXiSheViewController.h"

#import "HWTongYongSheZhiTableViewCell.h"

@interface HWXiaoXiSheViewController ()<UITableViewDataSource,UITableViewDelegate>
@property(strong,nonatomic) UITableView *mainaTableVie;
@property(strong,nonatomic) NSArray *dataArr;


@end

@implementation HWXiaoXiSheViewController

-(UITableView *)mainaTableVie {

    if  (_mainaTableVie == nil) {

        _mainaTableVie = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, kScreenW, kScreenH) style:UITableViewStylePlain];
        _mainaTableVie.delegate = self;
        _mainaTableVie.dataSource = self;
        _mainaTableVie.separatorStyle = UITableViewCellSeparatorStyleNone;
        
        _mainaTableVie.backgroundColor = [UIColor whiteColor];
        _mainaTableVie.backgroundColor = RGB(247, 247, 247);
        
    }
    return   _mainaTableVie ;

}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self navigationView];
    [self setupUI];

    
}


- (void)navigationView {
    
    self.navigationItem.title = @"通用设置";
    
   //   self.dataArr = @[@"接收活动消息",@"聊天消息通知栏提醒",@"接收领积分提醒",@"自动检查版本更新",@"省流量",@"清理缓存"];

     self.dataArr = @[@"游戏开测提醒",@"礼包上架提醒",@"每日签到提醒"];
     
    self.dataArr = @[[HWjianzhiduiObject keylocalization:@"游戏开测提醒"],[HWjianzhiduiObject keylocalization:@"礼包上架提醒"],[HWjianzhiduiObject keylocalization:@"每日签到提醒"]];
    
    
    
    
}



- (void)setupUI {
    
    self.view.backgroundColor = [UIColor redColor];
    [self.view addSubview:self.mainaTableVie];
}




- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    
    
    return  1;
    
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return  self.dataArr.count;
    
    
     
    
    
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    
    static NSString *cellID = @"cellID";
  
    HWTongYongSheZhiTableViewCell *cell  = [tableView dequeueReusableCellWithIdentifier:cellID];
    
    if (!cell) {
        cell =  [[NSBundle mainBundle] loadNibNamed:@"HWTongYongSheZhiTableViewCell" owner:nil options:nil].firstObject;
        
    }

    cell.selectionStyle  = UITableViewCellSelectionStyleNone;
    cell.biaotiNamaLabel.text =  self.dataArr[indexPath.row];
    
    cell.biaotiNamaLabel.textColor = RGB(68, 68, 68);
    
    cell.zuobianleironLabel.hidden = YES;
    
    
  
    
    
    return  cell;
    
}


- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    
    return  64;
    
    
}






@end
